import axios from "axios";

// 设备管理
export default {
  equipmentList (params) {
    return axios.post(`/ere/device/list`, params);
  },
  changeStatus (params) {
    return axios.get(
      `/ere/device/setInHome/${params.deviceCode}/${params.inHome}`
    );
  },
  quantityStatistics () {
    return axios.get(`/ere/device/getCount`);
  },
  importExcel (file) {
    return axios.post(`/ere/device/setInHome/readExcel`, file, {
      timeout: 200000
    });
  },
  batchInsert (filter) {
    return axios.post(`/ere/device/batchInsert`, filter);
  }
};
